
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Text;
using System.Xml;

using Swaf;
using Swaf.Gui;

using Swaf.BizObj;
using Swaf.Container;
using Swaf.Security;

namespace Articles.Gui
{
	public class ArticleUserMessengerBizProc : ArticleManagementBizProc
	{
		public ArticleUserMessengerBizProc(ActiveBizProc procState)
			:base(procState)
		{
			m_checkForValidPid = false;
		}

		protected override void setupRuleNames()
		{
			base.setupRuleNames();
			base.m_getBizObjListRule = "getArticlesFromUserMessages";
		}

		public override void showData(ForceLevel level)
		{
			getBizObjList();
			base.showData(level);
		}

		protected override object[] getBizObjListRuleParameters(object parentId, IBizObj filterSort)
		{
			return new object[] { m_procState.BPC.Messenger.ActiveUserMessages };
		}

		protected override void getBizObjList()
		{
			base.getBizObjList();
			//m_procState.BPC.Messenger.clearAll();
		}

        /// <summary>
        /// The messenger is a dependant of 
        /// </summary>
        protected override void clearDependentChildBizProcs()
        {
            //Intentionally left blank.
        }
	}
}
